package com.zgc.simpleholiday.model;

import lombok.AllArgsConstructor;
import lombok.Data;

import java.io.Serializable;

@Data
@AllArgsConstructor
public class HolidayItem implements Serializable {
    private String year;
    private String month;
    private String day;
    private DayStatus status;

    public HolidayItem(Holidays.Data.Almanac almanac) {
        this.year = almanac.getYear();
        this.month = almanac.getMonth();
        this.day = almanac.getDay();
        this.status = almanac.getDayStatus();
    }
}
